import {defineStore} from 'pinia'
import { ref } from 'vue'
import { pinia } from '@/store/storeIndex';

export function useSettingStoreWithoutSetup(){
    return useSettingsStore(pinia)
}

export const useSettingsStore=defineStore('settings',()=>{
    const isSideBarCollapse=ref(false);


    function toggleSideBarCollapse(){
        isSideBarCollapse.value=!isSideBarCollapse.value;
    }
    
    return{
        isSideBarCollapse,
        toggleSideBarCollapse
    }
});